package com.yonyou.lxp.account.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import com.yonyou.lxp.account.BaseActivity;
import com.yonyou.lxp.account.R;

import org.xutils.x;

public class WelcomeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
//去掉Activity上面的状态栏
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_welcome);
        x.task().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent it = new Intent(mContext, QueryActivity.class);
                startActivity(it);
                finish();
            }
        }, 2000);
    }
}
